﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopTaohuaItemComment")]
    public class TopTaohuaItemComment : BaseObject
    {
        //begin
        public TopTaohuaItemComment()
        {}
        public TopTaohuaItemComment(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _Comment;
        public string Comment
        {
            get
            {
                return _Comment;
            }
            set
            {
                SetPropertyValue("Comment", ref _Comment, value);
            }
        }
        private DateTime _CommentDate;
        public DateTime CommentDate
        {
            get
            {
                return _CommentDate;
            }
            set
            {
                SetPropertyValue("CommentDate", ref _CommentDate, value);
            }
        }
        private string _UserNick;
        public string UserNick
        {
            get
            {
                return _UserNick;
            }
            set
            {
                SetPropertyValue("UserNick", ref _UserNick, value);
            }
        }
        private TopTaohuaItemCommentResult _TopTaohuaItemCommentResult;
        [Association("TopTaohuaItemCommentResultTaohuaItemComments", typeof(TopTaohuaItemCommentResult))]
        public TopTaohuaItemCommentResult TaohuaItemCommentResult
        {
            get
            {
                return _TopTaohuaItemCommentResult;
            }
            set
            {
                SetPropertyValue("TopTaohuaItemCommentResult", ref _TopTaohuaItemCommentResult, value);
            }
        }
        //end

    }
}
